﻿<!--{inc(header.view.html)}-->
  <script src="{$web_view_dir}style/js/calenderJS.js"></script>

<div class="header">    
  
                       <div class="nav">
	                                 <ul id="nav_list">
                                                 <li><a href="index.php?app=group&act=index"  target="mainframe">团购列表</a></li>
                                                 <li><a href="#" class="nav_icon" target="mainframe">新增团购</a></li>
                                                 <li><a href="index.php?app=group&act=cagrylist"  target="mainframe">团购分类列表</a></li>
                                                 <li><a href="index.php?app=group&act=cagryadd"  target="mainframe">新增团购分类</a></li>
	                                 </ul>
                       </div>
                
</div>



<div id="content">
                   <h1>新增团购</h1>

                  <div>
                                    <div class="tips_show"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b>
                                                                  <span ></span>
                                    </div>




<form action="?app=group&act=addpost" method="post">

                                   <table align="center" width="100%" cellpadding="4" cellspacing="0" border="0" class="table_style">
                                   
                                   
                                  <tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	                                      <td width="15%">团购分类<font color=red>(*)</font>:</td>
	                                      <td>
	                                       <select name="data[cat_id]" >
                                           <option value='0'>请选择分类...</option>
                                           
                                           <!--{foreach($categorydata as $_key => $_value )}-->
                                           
				<option value="{$_value.cat_id}" <!--{if ($_value.cat_id==0)}-->selected<!--{/if}-->>{$_value.str_pad}{$_value.cat_name}</option>
                
                                            <!--{/foreach}-->
                                           </select>
	                                     </td>
                                 </tr>                                   
                                   
                                   
                                   <tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">

	                                      <td >团购名称： (*)</td>
	                                      <td>
                                         <input type="text" name="data[name]" size="60" value="" id="title">
										 
                                     </td>
                                   </tr>


								   
	  <tr> 
	           <td >团购区域：</td> 
			   <td >
			   <label> 
<SCRIPT LANGUAGE="JavaScript" src="{SITE_URL}/data/js/ajax.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" src="{SITE_URL}/data/js/select_menu.js"></SCRIPT>
						
						<SCRIPT LANGUAGE="JavaScript"> 
<!--
var input_value='0';
var input_name='data[city]';
var select_type='2';
var file='{SITE_URL}/admin/?app=group&act=doajax';
var DIV_idb='DIV_idb'+Math.random();
var input_idb='input_idb'+Math.random();
document.write("<span id='"+DIV_idb+"'></span>");
document.write("<input type='hidden' id='"+input_idb+"' name='"+input_name+"'  size='5' value='"+input_value+"'>");
get_div_S(DIV_idb,DIV_idb,input_idb,select_type,'',input_value);
//-->
</SCRIPT>

			   </label>
			   </td> 
	  </tr>                                    
                                   
	  <tr> 
	          <td >合作商家：</td> 
			  <td > 
			  <span id='showcity'>请先选择城市</span></td> 
	  </tr> 

                             
                                  <tr >
	                                      <td>团购缩略图:</td>
	                                      <td>
                    
    <phpscup:form type='ouppic' width='370' height='150' scrolling='no' frameborder='0' size='40' name='data[img]' appname='group' sxdata='' />                   

                    
                    
	                                     </td>
                                 </tr>

	  <tr> 
	           <td >简介：</td> 
			   <td ><textarea name="data[intro]" cols="40" rows="5" id="intro"></textarea></td> 
	  </tr>
	  
	  <tr> 
	           <td >产品数量上限：</td> 
			   <td ><input name="data[maxnum]" type="text" id="maxnum" /><span style="color:red;">*0表示不限制</span></td> 
	  </tr>
	  
	  <tr> 
	           <td >团购开始时间：</td> 
			   <td ><input name="data[begintime]" type="text" id="begintime" onfocus="HS_setDate(this)" size="10" />（从设定日期0点开始）</td> 
	   </tr>
	   
	   <tr> 
	           <td >团购结束时间：</td> 
			   <td ><input name="data[overtime]" type="text" id="overtime" onfocus="HS_setDate(this)" size="10" />（到指定日期0点结束）</td> 
	   </tr>

	   <tr> 
	           <td >消费券有效期的截止日期：</td> 
			   <td ><input name="data[perioddate]" type="text" id="perioddate" onfocus="HS_setDate(this)" size="10" /></td> 
	   </tr>
	   
	   <tr>
	           <td >最少需要多少人购买才算团购成功：</td> 
			   <td ><input name="data[successnum]" type="text" id="successnum" value="10" /></td> 
	   </tr>
	   
	   <tr> 
	           <td >一次最多买多少产品：</td> 
			   <td ><input name="data[oncemax]" type="text" id="oncemax" value="5" /><span style="color:red;">*0表示不限制</span></td> 
	   </tr>
	   

	   
	   <tr> 

	                                     <td colspan="2" align="left" >本单详情:<br/>
                                         
 <phpscup:form type='webeditor' width='100%' height='450' scrolling='no' frameborder='0' name='data[content]' appname='group' sxdata='' />                                        
                                          
										 </td>


	   </tr> 
	   <tr> 

	                                     <td colspan="2" align="left" >特别提示:<br/>	
  <phpscup:form type='webeditor' width='100%' height='450' scrolling='no' frameborder='0' name='data[cue]' appname='group' sxdata='' />                                        								 
										 </td>

	   </tr> 
	   
	   <tr> 

	                                     <td colspan="2" align="left" >他们说:<br/>
 <phpscup:form type='webeditor' width='100%' height='450' scrolling='no' frameborder='0' name='data[theysay]' appname='group' sxdata='' />
										 </td>



	   </tr> 
	   
	   <tr> 
	         
	                                     <td colspan="2" align="left" >天天团购说:<br/>
     <phpscup:form type='webeditor' width='100%' height='450' scrolling='no' frameborder='0' name='data[wesay]' appname='group' sxdata='' />									 
										 </td>


	  </tr>
                               
  


                                 
                                 
                                 <tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	                                     <td>相关设置:</td>
	                                     <td>
                                        <span close="011"> 
                    <input type="checkbox" name="data[display]" value="1"  checked >
                    审核 </span> <span close="01"> 
                    <input type="checkbox" name="data[top]" value="1" >
                    置顶 
                    <input type="checkbox" name="data[levels]" value="1" >
                    推荐 </span> 
                   <input type='checkbox' name='data[special]' value='1' >主页头条
                                         </td>

                                </tr>
                                

                                                              
                                                     
                                
                                <tr >
	                                     <td>&nbsp;</td>
	                                     <td><input name="id" type="hidden" value="{$id}" /><input type="submit" class="buton" value=" 提 交 " /></td>
                                </tr>
                                </table>
                                </form>


                 </div>

</div>

<!--{inc(footer.view.html)}-->